orNull

infix fun orNull(value: Int): NonZeroInt?

Deprecated

Use the NonZeroIntOrNull function instead.

Replace with

import kotools.types.number.NonZeroIntOrNull
NonZeroIntOrNull(value)

Returns the value as a NonZeroInt, or returns null if the value equals 0.